<h1>
    Buoys
</h1>
<div class='wrap-content'>
    <?php $new_buoy_url = $this->url(array('action' => 'newbuoy')); ?>
    <a href='<?php echo $new_buoy_url ?>'>+ Add New Buoy</a>
</div>
<form method='post'>
    <input type='submit' value='Delete' class='delete-item-button' />
    <table cellspacing="0" id='tbl_list'>	
        <thead>
            <tr>
                <th>
                    <input type='checkbox' id='master_check'/>	
                </th>
                <th>
                    Buoy Name
                </th>
                <th>
                    Port
                </th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($this->buoys as $buoy): ?>
                <tr>
                    <td>
                        <input type='checkbox' value='<?php echo $buoy->id ?>' name='delete_ids[]'/>
                    </td>
                    <td>
                        <a href='<?php echo $this->url(array('module' => 'admin', 'action' => 'editbuoy', 'bid' => $buoy->id), NULL, true) ?>'>
                            <?php echo $buoy->name ?>
                        </a>
                    </td>
                    <td>
                        <?php echo $buoy->port->name ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</form>
<script src='<?php echo $this->baseUrl()?>/public/js/ports.js'></script>